package com.wiretap.dao;

import java.util.List;

import com.wiretap.po.RemoteCall;
import com.wiretap.util.Pager;

public interface RemoteCallDao {

	void addRemoteCall(RemoteCall call) throws Exception;

	int deleteRemoteCall(Long id) throws Exception;

	Pager<RemoteCall> getUserRemoteCall(String ownerPhone, int currentPage, int pageSize) throws Exception;

	RemoteCall getRemoteCallById(Long id) throws Exception;

	void updateRemoteCall(RemoteCall call) throws Exception;

	int updateRemoteCallExecutedStatus(Long[] ids, boolean excuted) throws Exception;

	List<RemoteCall> getAllUnexecutedRemoteCall(String owerPhone) throws Exception;

	int deleteRemoteCallByOwnerPhone(String ownerPhone) throws Exception;
}
